home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8504.arc
/
SRPNSKI.BAS
< prev
next >
Wrap
BASIC Source File
|
1986-09-14
|
2KB
|
54 lines
10 SCREEN 1,1:KEY OFF:CLS
20 LOCATE 12,15:PRINT "WAIT...";
30 '
40 DIM UU$(10),UR$(10),UL$(10)
50 DIM DD$(10),DR$(10),DL$(10)
60 DIM RR$(10),RD$(10),RU$(10)
70 DIM LL$(10),LD$(10),LU$(10)
80 '
90 UR$(0)="E2":UL$(0)="U2":UU$(0)="U2"
100 DL$(0)="G2":DR$(0)="D2":DD$(0)="D2"
110 RD$(0)="F2":RU$(0)="R2":RR$(0)="R2"
120 LU$(0)="H2":LD$(0)="L2":LL$(0)="L2"
130 '
140 FOR K=1 TO 10
150 MUU$="XUU$("+STR$(K-1)+");"
160 MUL$="XUL$("+STR$(K-1)+");"
170 MUR$="XUR$("+STR$(K-1)+");"
180 MDD$="XDD$("+STR$(K-1)+");"
190 MDR$="XDR$("+STR$(K-1)+");"
200 MDL$="XDL$("+STR$(K-1)+");"
210 MRR$="XRR$("+STR$(K-1)+");"
220 MRU$="XRU$("+STR$(K-1)+");"
230 MRD$="XRD$("+STR$(K-1)+");"
240 MLL$="XLL$("+STR$(K-1)+");"
250 MLD$="XLD$("+STR$(K-1)+");"
260 MLU$="XLU$("+STR$(K-1)+");"
270 '
280 UU$(K)=MRU$+MUR$+MUU$
290 UL$(K)=MUL$+MLU$+MLL$
300 UR$(K)=MUL$+MLU$+MUR$+MRD$+MRR$
310 DD$(K)=MLD$+MDL$+MDD$
320 DR$(K)=MDR$+MRD$+MRR$
330 DL$(K)=MDR$+MRD$+MDL$+MLU$+MLL$
340 RR$(K)=MDR$+MRD$+MRR$
350 RU$(K)=MRU$+MUR$+MUU$
360 RD$(K)=MRU$+MUR$+MRD$+MDL$+MDD$
370 LL$(K)=MUL$+MLU$+MLL$
380 LD$(K)=MLD$+MDL$+MDD$
390 LU$(K)=MLD$+MDL$+MLU$+MUR$+MUU$
400 NEXT K
410 '
420 FOR K=1 TO 4:SIDE=2^(K+1)
430 SCAL=128/SIDE:CLS
440 LOCATE 1,1:PRINT "Level";K;
450 '
460 DRAW "C3BM160,90;S=SCAL;BL4"
470 DRAW UR$(K)+RD$(K)+DL$(K)+LU$(K)
480 DRAW "BR P3,3"
490 '
500 LOCATE 22,1
510 INPUT "Press ENTER to continue";A$
520 NEXT K
530 END